package admin

import (
	"github.com/maxyang107/jinglan/common"
	"github.com/maxyang107/jinglan/model/user"
)

var (
	AdminUserService = &UserSer{}
)

type UserSer struct{}

func (u UserSer) GetUserList(query_ common.UserList) *user.UserList {
	if query_.PerPage == 0 {
		query_.PerPage = 10
	}

	return user.GetUserList(query_)
}

func (u UserSer) SetUserStatus(id uint, status uint8) error {
	return user.SetUserStatus(id, status)
}
